package com.lz.library.extension

import java.io.PrintWriter
import java.io.StringWriter

/**
 *  author: you : 2020/10/27
 */

fun Throwable.stackString(): String = StringWriter().also { sw -> PrintWriter(sw).use { printStackTrace(it) } }.toString()